package online.misscl.lsy.controller.front;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import online.misscl.lsy.entity.dto.vo.VaccineSortVo;
import online.misscl.lsy.service.VaccineSortService;
import online.misscl.lsy.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 疫苗分类 前端控制器
 * </p>
 *
 * @author misscl
 * @since 2023/03/11 11:14
 */
@RestController
@RequestMapping("/front/vaccineSort")
@Api(tags = "医院模块")
public class VaccineSortController {

    @Autowired
    private VaccineSortService vaccineSortService;

    @ApiOperation(value = "查询疫苗分类列表")
    @GetMapping("/getVaccineSort")
    public AjaxResult<List<VaccineSortVo>> getVaccineSort() {
        return AjaxResult.success(vaccineSortService.getVaccineSort());
    }




}
